import { DeleteConfirmComponent } from './general/pop/delete-confirm.component';
import { PlayDetailComponent } from './paly-log/detail/detail.component';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgModule, enableProdMode, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import {HttpModule, JsonpModule } from '@angular/http';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';

import {MaterialModule} from '@angular/material';
import {MdNativeDateModule} from '@angular/material';
import {MdButtonModule, MdCheckboxModule, MdIconModule} from '@angular/material';
import {AppRoutingModule} from './app-routing.module';
import {MdDatepickerModule} from '@angular/material';
import {MdSelectModule} from '@angular/material';
import {AppComponent} from './app.component';
import {TopnavComponent} from './topnav/topnav.component';
import {NavsideComponent} from './navside/navside.component';
import {ContentComponent} from './content/content.component';
import 'hammerjs';

import {LoadingCompoennt, DeleteManaConfirm, DeleteTaskConfirm} from './service/dialog.service';
import {TableComponent} from './table/table.component';
import {CdkTableModule} from '@angular/cdk/table';
import {LoginComponent } from './login/login.component';
import {TerminalService} from './service/terminal.service';
import {DialogService} from './service/dialog.service';
import {CommonService} from './service/common.service';
import {ApiServiceService} from './api.service';
import {VirtualService}from './service/virtual.service'
import {SafeUrlPipe} from './pipe/safeUrl.pipe';
import {SencondToTimePipe} from './pipe/sencondToTime.pipe';
import { HomesComponent } from './homes/homes.component';
import { ModulListComponent } from './modul-list/modul-list.component';
import { ErrorpageComponent } from './errorpage/errorpage.component';
import {SortablejsModule} from "angular-sortablejs/dist/index";
import { PalyLogComponent } from './paly-log/paly-log.component';
import { PalyRequestComponent, LoadingDialog } from './paly-request/paly-request.component';
import { PlatformComponent } from './platform/platform.component';
import { StationComponent } from './station/station.component';
import { AcceptorComponent } from './acceptor/acceptor.component';
import { PlaySystemComponent } from './play-system/play-system.component';
import { TerminalInfoComponent } from './terminal-info/terminal-info.component';
import { PlaysystemComponent } from './playsystem/playsystem.component';
import { StationlogComponent } from './stationlog/stationlog.component';
import { AcceptorLogComponent } from './acceptor-log/acceptor-log.component';
import { PlaySystemLogComponent } from './play-system-log/play-system-log.component';
import { PlatformLogComponent } from './platform-log/platform-log.component';
import { TerminalLogComponent } from './terminal-log/terminal-log.component';

import {DyButtonComponent }from './general/dy-button/dy-button.component';
import { DetailComponent } from './stationlog/detail/detail.component';






// enableProdMode()
@NgModule({
  declarations: [
    AppComponent,
    TopnavComponent,
    NavsideComponent,
    ContentComponent,

    LoadingCompoennt,
    DeleteManaConfirm,
    DeleteTaskConfirm,
    SafeUrlPipe,
    SencondToTimePipe,
    TableComponent,
    LoginComponent,
    HomesComponent,
    ModulListComponent,
    ErrorpageComponent,
    PalyLogComponent,
    PalyRequestComponent,
    PlatformComponent,
    StationComponent,
    AcceptorComponent,
    PlaySystemComponent,
    TerminalInfoComponent,
    PlaysystemComponent,
    StationlogComponent,
    AcceptorLogComponent,
    PlaySystemLogComponent,
    PlatformLogComponent,
    TerminalLogComponent,
    DyButtonComponent,
    DetailComponent,
    PlayDetailComponent,
    DeleteConfirmComponent,
    LoadingDialog

  ],
  imports: [
    BrowserModule,
    FormsModule,
    ReactiveFormsModule,
    BrowserAnimationsModule,
    MaterialModule,
    MdButtonModule,
    MdCheckboxModule,
    MdNativeDateModule,
    AppRoutingModule,
    CdkTableModule,
    HttpModule,
    JsonpModule,
    MdDatepickerModule,
    MdIconModule,
    MdSelectModule,
    SortablejsModule,
  ],
  providers: [
    TerminalService,
    DialogService,
    ApiServiceService,
    CommonService,
    VirtualService,
  ],
  bootstrap: [AppComponent],
  entryComponents: [
    LoadingCompoennt,
    DeleteManaConfirm,
    DeleteTaskConfirm,
    DetailComponent,
    PlayDetailComponent,
    DeleteConfirmComponent
  ],
  schemas: [
    CUSTOM_ELEMENTS_SCHEMA
  ]
})
export class AppModule {
}
